<template>
	<view class="contain">
		<view class="containTop">
			<view class="avatar">
				<view class="imgbox">
					<image class="img" src="@/static/LOGO.png">
					</image>
				</view>
			</view>
			<view class="containTopText">
				熙喆科技
			</view>
		</view>
		<view class="containBottom">
			<!-- 新商家录入 -->
			<view class="containNewShop" @click="goIndex">
				新商家录入
			</view>
			<!-- 已入驻商家 -->
			<view class="containOldShop" @click="goMerchant">
				已入驻商家
			</view>
		</view>
	</view>
</template>

<script setup>
	// 跳转到新商家录入
	const goIndex = () => {
		uni.navigateTo({
			url: '/pages/index/index'
		})
	}
	// 跳转到已入驻商家
	const goMerchant = () => {
		uni.navigateTo({
			url: '/pages/merchantInfo/index'
		})
	}
</script>

<style lang="scss" scoped>
	.contain {
		width: 100vw;
		height: 100vh;
		background: linear-gradient(to right bottom, #9885ff, 8%, #cdddff, 80%, #f8faff);
		padding: 0 30rpx;

		// 公司logo & 公司名称
		.containTop {
			width: 100%;
			height: 20%;
			display: flex;
			align-items: flex-end;

			// 公司logo
			.avatar {
				width: 220rpx;
				height: 220rpx;
				border: 1rpx solid #fff;
				border-radius: 50%;
				display: flex;
				justify-content: center;
				align-items: center;

				.imgbox {
					width: 160rpx;
					height: 160rpx;

					.img {
						width: 100%;
						height: 100%;
					}
				}
			}

			// 公司名称
			.containTopText {
				flex: 1;
				height: 220rpx;
				display: flex;
				align-items: center;
				padding-left: 30rpx;
				font-weight: 600;
				font-size: 30rpx;
			}
		}

		//跳转页面
		.containBottom {
			width: 100%;
			height: 500rpx;
			background-color: #fff;
			margin-top: 30rpx;
			padding: 20rpx;
			border-radius: 15rpx;
			display: flex;
			flex-direction: column;
			justify-content: space-between;
			color: #fff;
			font-size: 40rpx;
			font-weight: 600;

			// 新商家录入
			.containNewShop {
				width: 100%;
				height: 47%;
				background-color: #bfd0ff;
				border-radius: 15rpx;
				display: flex;
				align-items: center;
				justify-content: center;

			}

			// 已入住商家
			.containOldShop {
				width: 100%;
				height: 47%;
				background-color: #bfebff;
				border-radius: 15rpx;
				display: flex;
				align-items: center;
				justify-content: center;
			}
		}
	}
</style>